<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <title>图书管理</title>
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
<table class="tt">
    <caption>图书信息</caption>
    <tr>
        <th>ID</th>
        <th>名称</th>
        <th>价格</th>
        <th>基本操作</th>
    </tr>
    <c:forEach items="${books}" var="book">
        <tr>
            <td>${book.id}</td>
            <td>${book.name}</td>
            <td>${book.price}</td>
            <td><a href="?id=${book.id}">删除</a></td>
        </tr>
    </c:forEach>
    <tr>
        <td colspan="100">
            <a href="add">添加新图书</a>
        </td>
    </tr>
    <tr>
        <td colspan="100">
            分页信息
        </td>
    </tr>
</table>
</body>
</html>
